package cn.lenchu.core.service.impl;

import cn.lenchu.core.service.StockService;
import cn.lenchu.stock.model.Stock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lenchu
 */
@Service
public class StockServiceImpl implements StockService {

    @Autowired
    private cn.lenchu.stock.service.StockService stockService;

    @Override
    public List<Stock> searchStock(String keyword, String source) {
        return stockService.searchStock(keyword);
    }

    @Override
    public Stock getByCode(String code, String source) {
        return stockService.getByCode(code);
    }

}
